package com.siao.example.common
{
	import com.siao.applications.Application;
	import com.siao.applications.Module;
	import com.siao.example.common.state.MainState;
	
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	[SWF(width="760", height="580", backgroundColor="#FFFFFF")]
	
	/**
	 * 示例主程序
	 * @author SiaoLeon
	 */
	public class SiaoLibarayExample extends Application
	{
		// -------------------------------------------------------------------------------------------------------- 静态常量
		
		// -------------------------------------------------------------------------------------------------------- 静态变量
		
		// -------------------------------------------------------------------------------------------------------- 静态方法
		
		// -------------------------------------------------------------------------------------------------------- 静态函数
		
		// -------------------------------------------------------------------------------------------------------- 属性
		
		// -------------------------------------------------------------------------------------------------------- 变量
		
		// -------------------------------------------------------------------------------------------------------- 构造
		
		/**
		 * 构造函数
		 */
		public function SiaoLibarayExample()
		{
			super();
			
			this.addModule(new Module(new MainState()));
		}
		
		// -------------------------------------------------------------------------------------------------------- 方法
		
		override public function startup():void
		{
			this.stage.scaleMode = StageScaleMode.NO_SCALE;
			this.stage.align = StageAlign.TOP_LEFT;
		}
	
		// -------------------------------------------------------------------------------------------------------- 函数
	
	}
}
